<template>
  <view>
    <navigator class="item" url="/pages/pusher">自定义推流</navigator>
    <navigator class="item" url="/pages/player">自定义播放</navigator>
    <navigator class="item" :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + roomId + '&custom_params=' + customParams">直播插件</navigator>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        // 房间号
        roomId: '3',
        // 业务参数
        customParams: encodeURIComponent(JSON.stringify({ path: 'pages/index', pid: 1 })),
      }
    },
    methods: {
    }
  }
</script>

<style lang="scss">
.item {
  display: block;
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  text-align: center;
  font-size: 30rpx;
  color: #323232;
  background-color: #ffffff;
  border-bottom: 1rpx solid #e5e5e5;
}
</style>